package com.yygo.service;

import com.yygo.model.Bank;
import com.yygo.model.LoanProduct;
import com.yygo.model.User;

import java.util.List;
import java.util.Set;

/**
 * Created by tiansha on 2015/8/6.
 */
public interface BankManager extends GenericManager<Bank, Long> {
    List<Bank> getAllBanks();

    Set<LoanProduct> getLoanProductsByBank(Long bankId);

    void saveBank(Bank bank) throws UserExistsException ;


    List<User> getUsers(Long bankId);
}
